<template>
	<view class="success-container">
		<view class="kuang">
			<image class="bj" src="/static/图层 1@3x.png" mode=""></image>
			<view class="nav-bar">
				<view class="nav-left" @click="goBack">
					<uni-icons type="left" size="20" color="#ffffff"></uni-icons>
				</view>
				<text class="title">申请提现</text>
				<view class="nav-right">
					<view class="header-icon">
						<text>⋯</text>
					</view>
					<text class="nav-separator">|</text>
					<view class="header-icon">
						<view class="target-icon"></view>
					</view>
				</view>
			</view>
		</view>
		
		<!-- 成功内容卡片 -->
		<view class="success-card">
			<view class="success-icon">
				<view class="icon-circle">
					<text class="checkmark">✓</text>
				</view>
			</view>
			<text class="success-title">提交成功</text>
			<text class="success-subtitle">等待平台审核</text>
			<button class="back-home-btn" @click="goToHome">返回首页</button>
		</view>
	</view>
</template>

<script>
	export default {
		methods: {
			goBack() {
				uni.navigateBack()
			},
			goToHome() {
				uni.reLaunch({
					url: '/pages/shouye/shouye'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.success-container {
		min-height: 100vh;
		width: 100%;
		position: relative;
		background-color: #f5f5f5;
	}

	.bj {
		position: absolute;
		z-index: 1;
		width: 750rpx;
		height: 430rpx;
		left: 0;
		top: 0;
	}

	.kuang {
		display: flex;
		flex-direction: column;
		position: relative;
		width: 100%;
		height: 430rpx;
	}

	.nav-bar {
		position: relative;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 20rpx 30rpx;
		margin-top: 60rpx;
		height: 88rpx;
		box-sizing: border-box;
	}

	.nav-left {
		width: 40rpx;
		height: 40rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: white;
		font-weight: bold;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}

	.nav-right {
		display: flex;
		align-items: center;
	}

	.nav-right > view {
		margin-right: 10rpx;
	}

	.nav-right > view:last-child {
		margin-right: 0;
	}

	.nav-separator {
		color: rgba(255, 255, 255, 0.5);
		font-size: 20rpx;
		margin: 0 8rpx;
	}
	
	.header-icon {
		width: 48rpx;
		height: 48rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		
		text {
			color: #fff;
			font-size: 32rpx;
			line-height: 1;
		}
	}
	
	.target-icon {
		width: 24rpx;
		height: 24rpx;
		border: 2rpx solid #fff;
		border-radius: 50%;
		position: relative;
		
		&::after {
			content: '';
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			width: 8rpx;
			height: 8rpx;
			background: #fff;
			border-radius: 50%;
		}
	}
	
	.success-card {
		position: absolute;
		z-index: 2;
		top: 220rpx;
		left: 20rpx;
		right: 20rpx;
		background: #fff;
		border-radius: 30rpx 30rpx 0 0;
		padding: 80rpx 30rpx 60rpx 30rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		box-sizing: border-box;
		min-height: calc(100vh - 220rpx);
	}
	
	.success-icon {
		margin-bottom: 40rpx;
	}
	
	.icon-circle {
		width: 200rpx;
		height: 200rpx;
		background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.checkmark {
		font-size: 120rpx;
		color: #fff;
		font-weight: 300;
	}
	
	.success-title {
		font-size: 40rpx;
		font-weight: 500;
		color: #333;
		margin-bottom: 20rpx;
	}
	
	.success-subtitle {
		font-size: 28rpx;
		color: #999;
		margin-bottom: 80rpx;
	}
	
	.back-home-btn {
		width: 100%;
		height: 88rpx;
		line-height: 88rpx;
		background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
		color: #fff;
		border: none;
		border-radius: 44rpx;
		font-size: 32rpx;
		font-weight: 500;
		
		&::after {
			border: none;
		}
	}
</style>

